<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title>自定义搜索管理</title>
		<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
		<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="/static/web/css/admin.css">
		<script src="/static/web/js/jquery.min.js"></script>
		<script src="/static/web/js/bootstrap.min.js"></script>
		<script src="/static/web/js/admin.main.js"></script>
	</head>
	<body>
		<div class="container-fluid">
			<ol class="breadcrumb">
				<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
				<li class="breadcrumb-item"><a href="mychannel_main.php">文档模型管理</a></li>
				<li class="breadcrumb-item active">自定义搜索管理</li>
			</ol>
			<div class="card shadow-sm">
				<div class="card-header">自定义搜索管理</div>
				<div class="card-body">
					<form name="form1" action="mychannel_edit.php" method="post" target="stafrm">
						<input type="hidden" name="mid" value="<?php echo $mid?>">
						<input type="hidden" name="maintable" value="<?php echo $channel['maintable']?>">
						<input type="hidden" name="addontable" value="<?php echo $channel['addtable'];?>">
						<input type="hidden" name="step" value="<?php echo $step?>">
						<input type="hidden" name="dopost" value="modifysearch">
						<div class="table-responsive">
							<table class="table table-borderless">
								<tbody>
									<tr>
										<td width="260">栏目id</td>
										<td><?php echo $mid;?></td>
									</tr>
									<tr>
										<td>栏目名称</td>
										<td><?php echo $channel['typename']?></td>
									</tr>
									<?php if ($channel['issystem'] >= 0) {?>
									<tr>
										<td>主表可供自定义搜索的字段</td>
										<td><?php echo $mainfields;?></td>
									</tr>
									<?php }?>
									<tr>
										<td>附件表可供自定义搜索的字段</td>
										<td><?php echo $addonfields;?>（字段是程序依据字段类型自动选择生成）</td>
									</tr>
									<tr>
										<td>自定义搜索结果页模板</td>
										<td><input type="text" name="template" value="<?php echo $template;?>" class="admin-input-lg">（填写文件名，且文件必须在theme/apps目录）</td>
									</tr>
									<tr>
										<td align="center" colspan="2">
											<button type="submit" class="btn btn-success btn-sm">保存</button>
											<button type="reset" class="btn btn-outline-success btn-sm">重置</button>
										</td>
									</tr>
									<tr>
										<td colspan="2">
											<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
					</form>
				</div>
			</div>
		</div>
	</body>
</html>